home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / gengetopt-2.6.lha / gengetopt-2.6 / src / cmdline.ggo < prev    next >
Text File  |  2002-03-02  |  3KB  |  69 lines

  1. # Copyright (C) 1999, 2000, 2001  Free Software Foundation, Inc.
  2. #  
  3. # This file is part of GNU gengetopt 
  4. #
  5. # GNU gengetopt is free software; you can redistribute it and/or modify 
  6. # it under the terms of the GNU General Public License as published by 
  7. # the Free Software Foundation; either version 2, or (at your option) 
  8. # any later version. 
  9. #
  10. # GNU gengetopt is distributed in the hope that it will be useful, but 
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of 
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  13. # Public License for more details. 
  14. #
  15. # You should have received a copy of the GNU General Public License along 
  16. # with gengetopt; see the file COPYING. If not, write to the Free Software 
  17. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
  18.  
  19.  
  20. # Specification file format:
  21. #
  22. # This file consist in lines of sentences with the following format:
  23. #
  24. #         package <packname>
  25. #         version <version>
  26. #         purpose <string>
  27. #         option <long> <short> <desc> <argtype> <required>
  28. #         option <long> <short> <desc> flag      <onoff>
  29. #         option <long> <short> <desc> no
  30. #         ... # ...
  31. #
  32. # Where:
  33. #
  34. # <packname> = Double quoted string.
  35. # <version>  = Double quoted string.
  36. # <purpose>  = What the program does
  37. #              Double quoted string (even on more than one line)
  38. # <long>     = Double quoted string with upper and lower case chars, digits,
  39. #              '-' and '.'.  No spaces allowed.
  40. # <short>    = A single upper or lower case char, or a digit.
  41. # <desc>     = String with upper and lower case chars, digits, '-', '.' and
  42. #              spaces.
  43. # <argtype>  = string, int, short, long, float, double, longdouble or longlong.
  44. # <required> = yes or no.
  45. # <onoff>    = on or off.
  46. # Comments begins with '#' in any place of the line and ends in the 
  47. # end of line.
  48. # The third form of option is used if the option does not take an argument;
  49. # it must not be required.
  50.  
  51.  
  52. # Name of our program
  53. #package "gengetopt"       # we don't use it: we're using automake
  54. # Version of our program
  55. #version "1.0.1"           # we don't use it: we're using automake
  56.  
  57. purpose "This program generates a C function that uses getopt_long function
  58. to parse the command line options, validate them and fill a struct."
  59.  
  60. # Options
  61. option  "input"         i "input file (default std input)"      string     no
  62. option  "func-name"     f "name of generated function"      string  default="cmdline_parser"   no
  63. option  "file-name"     F "name of generated file"      string  default="cmdline"     no
  64. option  "long-help"     l "long usage line in help" no
  65. option  "unamed-opts"   u "accept filenames" no    
  66. option  "no-handle-help"   - "do not handle --help|-h automatically" no 
  67. option  "no-handle-version"   - "do not handle --version|-V automatically" no
  68. option  "no-handle-error" - "do not exit on errors" no
  69.